package cn.com.duiba.millionaire.center.biz.bo;


/**
 * Created by sty on 1/23/18.
 */
public class ConsumeAccountInfoParam implements Comparable{

    /**
     * 分会场活动的id
     */
    private Long activityId;

    /**
     * 增加金额用户
     */
    private Long cid;

    /**
     * 增加的金额
     */
    private Integer amount;

    private Long appId;

    public Long getActivityId() {
        return activityId;
    }

    public void setActivityId(Long activityId) {
        this.activityId = activityId;
    }

    public Long getCid() {
        return cid;
    }

    public void setCid(Long cid) {
        this.cid = cid;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Long getAppId() {
        return appId;
    }

    public void setAppId(Long appId) {
        this.appId = appId;
    }

    @Override
    public int compareTo(Object o) {
        if(o instanceof ConsumeAccountInfoParam){
            ConsumeAccountInfoParam p = (ConsumeAccountInfoParam)o;
            if(this.cid>p.getCid()){
                return 1;
            }else if(this.cid<p.getCid()){
                return -1;
            }else{
                return 0;
            }
        }
        return 0;
    }
}
